package com.share.finance.collection.core.web;

import com.share.common.common.Page;
import com.share.common.common.Result;
import com.share.finance.collection.core.model.db.NoticeLog;
import com.share.finance.collection.core.model.vo.NoticeLogPageReq;
import com.share.finance.collection.core.service.INoticeLogService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 通知日志记录  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-21
 */
@RestController
@RequestMapping("/notice")
public class NoticeLogController {
    @Autowired
    private INoticeLogService noticeLogService;

    @ApiOperation(value = "分页列表")
    @RequestMapping(value = "/pageList")
    public Result<Page<NoticeLog>> pageList(NoticeLogPageReq req) {
        Page<NoticeLog> page = noticeLogService.pageList(req);
        return Result.success(page);
    }
}
